<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.ostrich.system.bean.TostSysParaminfo"%>
<%@page import="com.ostrich.system.analysis.ParaminfoUtil"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   <%@include file="/view/resource.jsp" %>
  </head>
  <script type="text/javascript">
   <%
   String flag =(String)request.getAttribute("flag");
   if(flag != null && flag.equalsIgnoreCase("add")){
    %>
  	var flag=true;
    <%}else{ %>var flag=false;<%}%>
  </script>
  <body class="easyui-layout">
     <input class="hidden" name="pjId" id="pushPjid" value='${pushmy.pjId}'>
 	 <input class="hidden" id='search_parentId' name="parentId">
     <!-- DataList  -->
	 <div region="center" border="false" >
     	<table id="data-list" ></table>
     </div>
    
     <!-- Edit Win&From -->
     <div id="edit-win" class="easyui-dialog" title="添加具体的办公费用内容" data-options="closed:true,iconCls:'icon-save',modal:true"  style="width:500px;height:450px;">  
     	<form id="editForm" class="ui-form" method="post"> 
     	 <!-- 隐藏文本框 -->
     	 <input class="hidden" name="id">
     	 <input class="hidden" name="deleted">
    	 <input class="hidden" name="parentId" id='edit_parentId'>
     	 <input class="hidden" name="pjId" value="${pjinfo.id }">
     	 <input class="hidden" name="pctId" value="${pjcost.id }">
	            <div data-options="region:'north',split:true" style="height:185px;padding:10px">  
	               <div class="ftitle">详细</div>    
		           <div class="fitem">  
		               <label>办公项目:</label>  
		               <select name="podProject" id="podProject" style="width:150px;" data-options="required:true">
		               <% Map<Integer,TostSysParaminfo> type = ParaminfoUtil.getParamByPid(90); 
		               for(Map.Entry<Integer,TostSysParaminfo> m:type.entrySet()){
		               	%><option value="<%=m.getValue().getPaName()%>"><%=m.getValue().getPaName() %></option><%} %>
		              </select> 
		           </div>  
		           <div class="fitem">  
		               <label>金额:</label>  
		               <input class="easyui-validatebox" onblur="defvalue()" onKeyUp="value=value.replace(/[^\d\.]/g,'')" id="podCash" type="text" name="podCash" data-options="required:true">
		           </div>  
		           <div class="fitem">  
		               <label>每月每人费用:</label>  
		               <input class="easyui-validatebox" onKeyUp="value=value.replace(/[^\d\.]/g,'')"  id="podAvgcost" type="text" name="podAvgcost" data-options="required:true">
		           </div>  
		           <div class="fitem">  
		               <label>备注:</label>  
		               <input class="easyui-validatebox" type="text" name="podDesc" data-options="required:false">
		           </div>  
	            </div>
     	</form>
  	 </div>
  <script>
  var vtitle = "${pjinfo.pjProjectname}==>${pjcost.pctName}";
  </script>
  <script type="text/javascript" src="<%=basePath%>/osjs/project/TostPjOfficedetail.js"></script>
  </body>
</html>